﻿<template id="@(ViewBag.PageTemplate)">
    <div class="layout-page-content">
        <div class="layout-page-content-box work-flex-center wotk-h-100">
            <single_super_big_button icon="coin" text="好家伙，一键归档当期数据" type="danger" plain v-on:click="backupData"></single_super_big_button>
        </div>
    </div>
</template>
<script type="text/javascript">
    var @(ViewBag.PageName) = {
        template: "#@(ViewBag.PageTemplate)", data() {
            return {
                path: "@(ViewBag.PagePath)"
            }
        },
        methods: {
            backupData(){
                app.func.longConfirmDo(`${this.path}/generatebackupdatahandle`, "是否确认一键归档当期数据?", { imonth: '@DateTime.Now.AddMonths(-1).ToString("yyyyMM")' });
            }
        },
        mounted() { }
    };
</script>